﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace chihuopig.Web.verfiy
{
    public class AdminLoginModel
    {
        [MaxLength(20,ErrorMessage = "用户名最大长度20")]
        [Required(ErrorMessage = "用户名不能为空")]
       //[ChenckPhone(ErrorMessage ="测试，手机号不能为空")]
        public string username { get; set; }

        [MaxLength(20, ErrorMessage = "密码最大长度20")]
        [Required(ErrorMessage = "密码不能为空")]
        public string password { get; set; }

        [Required(ErrorMessage = "验证码不能为空")]
        public string verificationcode { get; set; }
    }
}
